﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication.Finance
{

	/// <summary>
	/// Declaration of CommsQueue
	/// </summary>
	public partial class CommsQueue : System.Web.UI.Page
	{

		/////////////////////////////////////////////////////////////
		// Event handlers

		protected void Page_Load(object sender, EventArgs e)
		{

			// If this is a postback...
			if (this.IsPostBack)
			{

			}
			else
			{

                // Load the print queue
				/*
                SqlDataRepository rep = new SqlDataRepository();
                CommsQueueModel m = rep.LoadCommsQueueModel();
				gridQueue.RowDataBound += new GridViewRowEventHandler(gridQueue_RowDataBound);
				gridQueue.DataSource = m.Items;
				gridQueue.DataBind();
				 */

			}

		}

		void gridQueue_RowDataBound(object sender, GridViewRowEventArgs e)
		{

			/*
			// If this is a data-row...
			if (e.Row.RowType == DataControlRowType.DataRow)
			{

				// Get comms item
				CommsQueueModel.Item targetList = e.Row.DataItem as CommsQueueModel.Item;

				// Get the grid-view and bind to the transaction
				GridView gridTransaction = e.Row.FindControl("gridTarget") as GridView;
				gridTransaction.DataSource = targetList.Targets;
				gridTransaction.DataBind();

			}
			 */

		}

		protected void butRemove_Click(object sender, EventArgs e)
		{

		}

		protected void butRetry_Click(object sender, EventArgs e)
		{

		}

		protected void butPause_Click(object sender, EventArgs e)
		{

		}

		protected void butResume_Click(object sender, EventArgs e)
		{

		}

	}

}